package top.cluski.feieprint.api.youzan.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class SpuRespEntity {
    private String vendor_code;
    private List<Skus> skus;
    private String category_name;
    private boolean is_non_spec;
    private List<String> unit_settings;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime update_time;
    private String category_id;
    private int size_group_id;
    private String photo_url;
    private long spu_id;
    private String spec_define_tuple;
    private String input_tax_rate;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime create_time;
    private String spu_code;
    private int multi_units_spu;
    private int lifecycle_id;
    private String vendor_name;
    private String brand_name;
    private long default_vendor_id;
    private String product_name;
    private List<Integer> sell_channels;
    private int brand_id;
    private String unit;
    private List<String> bar_codes;
    private String output_tax_rate;
    private String spu_no;

    @Data
    public static class Skus {
        private String standard_price;
        private String category_name;
        @JSONField(format = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime create_time;
        private long sku_id;
        private String specifications;
        private String product_name;
        private String retail_price;
        @JSONField(format = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime update_time;
        private String unit;
        private List<String> bar_codes;
        private String sku_no;
        private String category_id;
        private String sku_code;
    }
}
